package com.finley.flowabledemo.design.responsibility.process;


import cn.hutool.core.util.StrUtil;

/**
 * @description:
 * @author: xianfei.chao
 * @date 2025/6/1 11:17
 * @version: 1.0
 */
public class Test2Process extends IProcessHandler{


    public Test2Process(String name) {
        super(name);
    }

    @Override
    String process(Process process) {
        if (StrUtil.equals( process.getType(), "TEST2")) {
            return StrUtil.format("类型:[{}],工序：[{}]操作完成", process.getType(), name);
        }else{
            if (nextHandler != null) {
                return nextHandler.process(process);
            }
        }
        return "finish";
    }
}
